019 understanding timer on delay
好吧,在这段视频中,您会看到另一个计时器,该计时器在计时器上被调用。
All right in this video you see another timer which is called on the timer onto the timer.
这是导通延迟的框图。
And this is the block diagram of on delay.
因此,您可以注意到一个小语法 D O N,它是针对延迟进行索引的。
So you can notice a small syntax D O N that is indexed for on delay.
那么让我们看看今天的内容以及它是如何工作的。
So let's see what is this on today and how does it work.
本质上是安德里。
And essentially Andri.
所以我要延迟操作逻辑定时器。
So I'm going operationalised logic timer on delay.
它会保存 T 接通时间或在预设时间延迟后将输出 Q 设置为接通。
It saves the T on time or it sets the output Q to on after a preset time delay.
因此,经过预设的延迟后,就意味着延迟了。
So after a preset delay it means it's a delay.
一旦输入继续延迟。
Once the input goes on the delay.
然后该项目将打开。
Then the item will be on.
好的,让我们看看不同参数的数据博客。
OK so let's see the different parameters data blog.
正如我之前所说,这是一个美元区块名称。
As I was before this is a dollar block name.
现在你有了一个输入信号。
Now you have an input signal.
所以这又是 0 到 1 的正边缘。
So this is again zero to 1 positive edge positive.
这不是德雷格。
It's Dreger not a.
这意味着如果您的输入信号从 0 到 1,那么当定时器被触发时,它就会打开。
It means if your input signal is on from 0 to 1 then when the timer will be triggered time it will be on.
因此,如果输入打开三秒,此时输入打开三秒,则可以节省三秒,您的输出将启动,并且将一直打开,直到输入关闭。
So if it saves three seconds if the input is on for three seconds at this point it is on for three seconds your output will start and it will be on until the time input goes off.
好的。
OK.
所以我们可以在下图中的博客中很好地理解这一点,但这只是我们了解什么是输入和输出。
So we can pretty much understand that in the blog in the diagram below but this is us to understand what is the input and output.
那么让我离开指针。
So let me go off the pointer.
所以这不是预设时间。
So this is not a preset time.
与贝蒂二聚体相似。
Similar to Beati dimer.
这是三秒的预设时间。
This is a preset time of three seconds.
这是当前时间,您可以在此处看到,这就是输出编号。
And this is a current time which you can see here and that's the output no.
那么它是怎样工作的。
So how does it work.
让我们看一下这个例子,它说如果重置时间是 3000 毫秒(三秒),那会是什么行为。
Let's see the example it says if reset time is 3000 milliseconds are three seconds what would that behavior.
因此,当输入继续进行时,您不必争论哪个可以连接到人工智能,并且操作员可以在预设时间后打开。
So as the input goes on here you don't argue which can be connected to AI and the Operative be on after the preset time.
因此,这是您放在这里的预设时间,即三秒钟,它会持续三秒钟,直到输入打开为止。
So this is a preset time which you put here which is three seconds of it is on for three seconds and it'll be on till the input is on.
好的。
OK.
所以这表明,如果输入持续时间少于三秒,我这里没有标记。
So this shows that if input is on for duration less than three seconds I don't have the marking here.
但是,如果您想象三秒的持续时间,并且输入持续时间少于三秒,则不会有输入。
But if you if you imagine this much duration of three seconds and if input is on for less than three seconds there would be no input.
好的。
OK.
这就是开启延迟定时器。
So this is the on delay timer.
那么让我们在西门子中尝试一下。
So let's let's try that in our Siemens.
一个小例子。
A small example.
我说他们输入 2.0,我会带一个计时器,你可以在其中找到它并进入,数据库会为你做一个。
I was saying they input the 2.0 and I would take a timer and on they you can find it here to go in and the database would do you in one.
好的。
OK.
这是强制性的。
This is this is mandatory.
所以我会把安迪的三秒和预计时间放在这里。
So I will put three seconds and estimated time Andy here.
好的。
OK.
现在你有没有拿出密歇根理工大学我所采取的任何暗示,你知道对你来说是这样的。
Now have you ever taken out what Michigan Tech any of what I'm taking cues you know are to you.
这是我的默认设置。
That's my default first off.
因此,让我们下载这个逻辑,看看这就像我打开输入三秒钟,然后我们就可以看到它。
So let's download this logic and see that is it's just like if I turn on the input for three seconds then on the on the on to is we are just going to visualize that.
因此,逻辑已下载,我从这里进入时将打开它们。
So the logic is downloaded I'm turning on them when entering from here.
逻辑是在输入时。
And the logic is when entered.
这就是您将看到的。
And here is what you'll see.
好的,我要打开第一块板,您将在此处看到计时器启动。
OK so I'm going to turn on the first board and you will see here the timer start.
这是非常相似的。
This is this is pretty much similar.
所以它会坐在这里,我也在这里。
So it will sit I'm here as well in here as well.
所以我打开我的输入,并且我不能以毫秒为单位向您显示几秒钟,并且一切都已打开。
So I turn on my input and that I must not showing you in milliseconds in seconds and everything is on.
所以你可以在这里看到这一点。
So you can see that here.
如果我关闭输入,输出也会关闭。
If I turn off my input the output will be off.
当你向上时,它会跟随输入。
When you're going up it follows the input.
延迟了一段时间后。
After a time delay.
所以现在第二种情况,如果我不打开输入,并且在三秒之前将其关闭,计时器将重置,而另一个将不会打开。
So now the second case if I don't on the input and I turn it off before three seconds the timer reset and the other will not be on.
在这种情况下,如果我超过三秒没有打开输出,您会再次看到计时。
This is the case which you saw the timing again if I don't hit on for more than three seconds the output is on.
如果我将其关闭,命令就会关闭。
And if I turn it off ordered will be off.
好的。
OK.
但如果你想点亮输出,你就需要相反的方式。
But if you want to light the output you want to land the opposite.
你可以做什么。
What you can do.
所以当你打开输入和输出时你想要的是。
So what you want when you turn on the input and output is on.
好的。
OK.
即使输入关闭,它也应该保持打开状态。
And it should remain on even if the input is off.
在那种情况下知道什么。
What do know in that case.
所以我只是向您展示一个小例子,您可以在此处进行联系。
So I'm just showing you a small example you can take about along here you can take a contact.
该触点应与上臂相同,以便您可以放置。
This contact should be same as the upper arm so you can put.
问:所以你看不到你,你必须在这里连接它。
Q So you don't see you and you have to connect it here.
因此,一旦它关闭并打开输出,它就会从这里锁住自己。
So once it turn off turn on the output it will latch itself from here.
让我们举一个例子,因为这是我们在前面的例子中已经学到的。
Let's have an example because this is this is we have already learned in the previous example.
因此,您几乎可以根据您想要在应用程序中实现的目标来自定义逻辑。
So you can pretty much customize your logic based on what you want to achieve in your application.
我们来看一下。
Let's have a look.
监控已开启。
The monitoring is on.
现在您可以在这种情况下保留 IP。
And here you have the ability now in this case the IP will remain on.
如果我关闭输入,因为我们已经完成了 Lachine,那么三秒延迟就会打开。
If I turn off the input because we have done the Lachine So three second time delay is on.
我不知道输入法。
I don't know the input.
对不起。
Sorry.
是的。
Yeah.
因此,输入将保持打开状态,因为它在这里有一个自吹自擂的逻辑,以打破我需要在这里继续的逻辑,以便我可以关闭输出。
So the input would remain on because it has a self-flattering logic here to break the logic I need to have a go on that here on here so that I can turn off the output.
在这种情况下,我无法关闭输出,因为没有用于锁定的制动机制。
In this case I cannot turn off the output because there is no braking mechanism for the latching.
所以这很清楚。
So this is pretty much clear.
让我们回到这里的演示。
Let's go back to the presentation we've got here.
好的。
OK.
所以事实上你认为BD没有影响而他正在运行藤井P-T的运行它不会影响操作。
So the fact you think BD has no effect while the runs that he is running the Fujii the P-T it will not affect the operation.
当计时器运行时更改为故障并重置并启动计时器,正如我们在这里看到的那样。
Changing into faults while the timer runs reset and start the timer as we saw here.
好的。
OK.
如果启动这里输入就死了没有运行。
If you start the input here died without running.
如果您关闭输入时间,它会重置并停止。
If you turn off the input time it reset and it will stop.
好的,让我们继续看一些例子,它说明了正确的逻辑,以 3 秒的延迟按顺序生成 Q4 到 Q1 和 Q2 的新拼写。
OK so let's proceed with some example it sais right logic to generate new spells out for Q4 to Q1 and Q2 in sequence with delay of 3 second.
好的。
Okay.
这里可能有一些错误。
There might be some some mistake here.
生成输出没有连续的频带来生成用于按顺序延迟 3 秒的 Q1 和 Q2 的输出。
Generate output there's no continuous bands right to generate output that used to Q1 and Q2 in sequence a delay of 3 second.
这意味着我们需要在输入力上,这个输出应该在三秒内打开和关闭,其他应该在第三个东西上,另一个应该打开。
It means we need to and on the input force this output should be on and off with three second and others should be on the number three thing and another should be on.
所以每次输出都有三秒的延迟。
So every output has a delay of three seconds.
一旦你在三秒后对输入进行了操作,我就会把它放上。
Once you do it on the input after three second forth I'll put it on.
然后三秒钟后,它就打开了,然后三秒钟后,它就打开了,然后打开后什么也没有发生。
Then after three seconds take it is on then in three seconds so it is on and then nothing happens on the up with it on.
这就是逻辑。
That is the logic.
因此,如果您了解延迟计时器,您可以自己生成此逻辑。
So if you have if you understand the timer on delay you can generate this logic by yourself.
这很容易。
It's pretty easy.
所以解决方案就在这里。
So the solution is here.
首先我们必须启动按钮,这个按钮来到这里,我们需要一个指针。
First we have to start button this button comes here and we take a pointer.
没事。
It is fine.
所以有一个想法 2.0 就在这里。
So there's about an idea 2.0 is here.
因此,如果您将其打开,那么我应该更好地使用绿色,因为红色表示大多数时候停止操作。
So if you turn it on OK I should I should better use green because red indicates stop operation most of the time.
好的。
OK.
一旦输入出现在屏幕上,计时器就会启动,三秒后我会收到一个脉冲,该脉冲将打开我的输出。
Once the input is on the screen OK the timer starts and after three seconds I have a pulse which would turn on my output.
好的。
OK.
所以第四个输出持续了三秒钟。
So the fourth output is getting on for three seconds.
现在注意这里的地址。
Now notice the address here.
这是一个点的时间。
This is time when one dot.
Q 所以这次 1 意味着 Steinmeier Q 意味着计时器的输出,所以我们正在获取输出的地址,这个输出地址就在这里。
Q So this time and one means the Steinmeier Q means the output of the timer so we are taking the address of the output this output address comes here.
所以这个输出是在三秒后出现的。
So this output comes after three seconds.
因此,三秒钟后,我这里会自动打开一点,它将再次启动,持续三秒钟。
So after three seconds I have a bit here which will be on automatically which will start another time and for three seconds.
米切尔打开我的灯。
Mitchell turn on my lamp.
在我第一次输出三秒后。
After three seconds of my first output.
所以这个输出和这个输出有一个三秒的延迟,这是由另一个定时器实现的,它的输入来自前一个定时器的输出。
So there is a delay of this output and this output by three seconds which is achieved by another timer and its input is from the output of previous timer.
好的。
OK.
因此,一旦这盏灯亮起,您就必须做一件事。
So once this lamp is on now you're going to have to do one thing.
您还可以在此处从此输出中获取标签。
You can also get the tag off this output here.
如果这令人困惑,因为一旦输出队列进入端口,错误就会同时出现。
If this is confusing because once the queue on output is onto the port the well the error is that on at the same time.
因此,您可以在此处给出此标签,也可以在此处给出此标签,这将为您提供相同的输出。
So you can either give the tag of this one here or this one here which will give you the same output.
因此,一旦此出价开启,它将通电,三秒后,您将再次获得另一个输出。
So once this bid is on this will energize and other time and again after three seconds you have another output which is on.
这又是他的这里,它又出现在这里。
And again this q his here and it's come up here.
因此,这种情况持续了三秒钟,失去了输出。
So this goes on for three seconds of lost output.
那是我最后一次工作。
That's the last I would work.
然后这将为平板提供能量。
And then this will energize the slab.
好的。
OK.
这是一个序列命令,您可以使用序列操作来打开不同延迟的输出。
So this is a sequence command which you can use sequence operation which you can use to turn on the outputs are different delays.
好的。
OK.
所以这又是三秒,全部三秒,因为我们在这里和这里给出了相同的时间。
So this is again three second all the three second because we have given the same time here here and here.
所以所有的奖项都会在三秒的时间间隔后进行。
So all the awards are on after three second time interval.
那么让我们在我们的软件中检查一下。
So let's check that in our software.
同样的逻辑我会删除之前的操作,这很好。
Same logic I would delete the previous operation and this is fine.
现在在这里你可以拿走这个和这个的标签,所以我会把它拿出来对不同的不同逻辑进行征税。
Now here you can take all you can take the tag of this one and this one so I'll take it out to go tax different different logic.
所以首先我要把这个标签去掉。
So here first I will take the tag off this.
问:股票是如何注意到您为数据提供的名称的?
Q How did the stock notice the name you gave your data.
Autoblog 60 或一个只需输入 T 或和一,您会看到这里的一个块只需单击一次,他将看到您可以在此联系人中收取的税款,所以我需要一个 Q 再次单击该按钮,您就有了标签。
Autoblog the 60 or and one just type T or and one and you will see that ablock here just clicked that once and he will see the tax which you can take in this contact so I need a Q That's clicked that once again and you have the tag.
所以这就是这个队列的时间。
So this is the time of this queue.
现在这将为另一个计时器生成一个信号。
Now this is going to generate a signal for another timer.
所以我接受了交易,在这里我将把其他数据块带给你,这一次让它看起来更容易。
So I take deal and here so and other data blocks I will take to you and this time to make it look more easy.
时间是三秒。
Time is three seconds.
我估计我不想要我不想要这里。
I estimate that I don't want I don't want it here.
好的。
OK.
现在提示 Q Do 没有的另一个输出。
Now cue another output that the Q Do not one.
好的。
OK.
现在又来了一封信。
Now comes another letter.
所以这次我要挖掘输出的地址。
So this time I'm going to dig the address of the output.
这样就清楚了。
This will make it clear.
所以这是一个你不想进入的巨大的地方。
So this is huge you don't want to enter.
然后你需要另一个计时器。
And then you need another timer.
这次是第二个和第三个,在这里我将采取另一个输出。
This time two and three and here I'll take another output.
Q 不适合交谈。
Q Is Not For talked to.
伟大的。
Great.
一切安好。
Everything is fine.
现在,我根据我的示例做了一些轻微的更改,我将这里和这里的 Q One 的地址和这里的地址设置为该输出的地址,只是为了向您解释这不会影响任何内容,您知道我的差异应用程序等等,如果我不按我的输入时间并开始,让我们检查一下它是否会打开输出,这很好。
Now what I made I made a slight change as per my example I took the address of this Q One here and here and here to the address of this output just to explain you that this is not going to affect any and you know difference in my application so forth if I don't on my inputs time and will start let's review that it will turn on the output that's fine.
现在,库伯勒(Kubler)的代码来到这里,并让三秒和其他操作员开始工作。
Now code this Kubler come here and have a three second and other operatives on.
那就OK了,就按这个速度就可以了。
That's OK then that's all done on this speed.
正如我们所说的等等。
As we say and so on.
所以逻辑看起来不错,让我们下载它并看看密歇根大学的操作。
So logic looks fine let's download that and have a look at the U of M operation.
所以这会发生,因为逻辑发生了变化。
So this goes off because the logic change.
是的。
Yeah.
一列火车。
A-Train.
在这个例子中,我们不能一直看到相同的情况,让我简单说一下。
It In this example we cannot see all the time in the same and let me just.
好的,这很好。
Okay and this is fine.
所以我的输入中有一个 b c 和一个。
So here we have a b c and an on my input.
因此,现在是时候开始重置正在发生的事情了,这个提示出现了,是时候重新开始了。
So this is on time start with resetting the up what goes on and this cue comes here time start again.
继续执行此操作,您可以看到时间再次开始并且输出打开。
This bit goes on you can see your time start again and the output is on.
因此,如果您在这里看到计时器需要三秒钟才能打开所有输出。
So if you see here the timer take three seconds to turn on all the output.
现在,如果我关闭输入,所有命令都会立即关闭,因为它始终会重置。
Now if I do an off the input all the order to be off at once because all the time it goes reset.
所以如果我再次打开输入你可以看看。
So if I again turn on the input you can have a look.
首先你必须使用它或不使用它。
First you have to use it or not.
那么你就会得到这里不存在的线索。
So you then you have cues that are not one here.
然后你就会得到一些你不想听到的提示,你知道总是通过有更多的时间来扩展逻辑。
Then you have cues you don't want to hear you know always extend the logic by having more time.
好的。
All right.
这是定时器逻辑的一个非常简单的应用。
So this is a very simple application of a timer logic.
您可以按顺序生成信号。
You can generate signals in sequence.
好的。
OK.
如果你想看看其中的逻辑,那也非常相似且易于理解。
And if you want to have a look at the logic of that that is also pretty much similar and easy to understand.
所以这里我们的逻辑是,你的第一个输入不是零时间三秒,并且它的输出变为一。
So here we have the logic that says you have first input is it not zero time a three second and it's output goes to one.
非常容易。
Pretty much easy.
然后你还有一两个时间,在 3:30 amental 的时间通过一个提示输入时间。
And then you have another time or two and time at 3:30 amental has the input of time with one cue.
正如我向您展示的,当执行逻辑时,这非常相似,并且 q 转到 lamped 以在计时器上添加另一个计时器。
As I showed you when that did logic this is pretty much similar and q goes to lamped to add another timer on timer.
今晚他们在这里的投入比较少。
They're here input is dimer tonight.
问:这个,我可以去兰特里。
Q This one here and I could go to Lantry.
所以这和我们所做的电子字母逻辑类似。
So this is similar to what we have done eletter logic.
所以这是关于时间和延迟的。
So this is about the time and on delay.
因此,让我们给您上一课,我们仅在其使用和延迟方面拥有较长的寿命。
So let's give you this lesson we have longevity on it's usage and on delay only.
好的。
OK.
只是在延迟时,我们可以使用多个 to 来生成逻辑序列。
Just on delay and we can use multiple to in order to generate sequence of logic's.
我们已经看到一个例子,联合国的坏图像存储在一个数据块中,可以使用特定地址在逻辑中的任何位置访问该数据块。
We have seen an the example the bad image of the UN are stored in a data block which can be accessed anywhere in the logic by using the specific address.
我们谈论的是一个时代,我们用一扇门来作为接触位中的字母。
We're talking about a time where one door to which we have used for the letters in the contact bit.
好的。
OK.
所以你可以在你的逻辑中的任何地方使用它。
So you can use that anywhere in your logic.
所以这几乎是使用数据块的义务。
So this is pretty much the obligation of using a data block.
好的。
OK.
非常感谢您,您将在课程中找到它的介绍。
Thank you so much and you will find its presentation in the course.
如果您有任何疑问,可以向我发表评论,或者如果您想在计时应用程序中生成任何逻辑,可以询问。
If you have any doubt you can put to me a comment or if you want if you want to generate any logic off your timing application you can ask.
您可以在评论框中寻求帮助。
You can ask for assistance in the comment box.
下一个视频见。
See you in the next video.